<?php
include_once('admin/structures/tableEditors.php');
include_once('admin/structures/editorFields.php');

class adminLicenses extends simpleTableEditor
{
    //construct games object
    function adminLicenses()
    {
        global $lang;

        $this->simpleTableEditor(LICENSES_TABLE, 'licenses', 'AdminEditLicenses',  $lang['AdminEditLicensesInfo'], true, true);
        $this->addColumn(new fieldId('l_id'));
        $this->addColumn(new fieldTitle($lang['LicenseName'],'l_name','',20));
        $this->addColumn(new fieldNumeric($lang['LicenseMinRaces'],'l_minRaces','',0,100));
        $this->addColumn(new fieldNumeric($lang['LicenseMaxPoints'],'l_maxPoints','',0,100));
        $this->addColumn(new fieldNumeric($lang['LicensePointDuration'],'l_pointDuration','',0,100));
        $this->addColumn(new fieldYesNoComboBox($lang['LicenseDefault'],'l_default',''));
        $this->addColumn(new fieldNumeric($lang['LicenseOrder'],'l_order','',0,100));
        $this->addColumn(new fieldLongText($lang['LicenseAbout'],'l_about','',8));
        $logoThmb = new fieldDummy('l_imageThmb');
        $this->addColumn(new fieldImage($lang['Logo'],'l_image','','licenses',300,150, false, true, $logoThmb, 120, 60));
        $this->addColumn($logoThmb);
        $this->doStuff();

    }
}
?>
